package info.pixstone.foodhunter.control;

import info.pixstone.foodhunter.acquaintance.IAUser;
import info.pixstone.foodhunter.domain.mediator.MAccountManage;

public class CAccountManage
{
	private MAccountManage account;
	private IAUser user;
	boolean isLogout;
	public IAUser login(String userName,String pwd)
	{
		account=new MAccountManage();
		user=account.login(userName, pwd);
		return user;
	}
	public boolean logout(String userName)
	{
		account=new MAccountManage();
		isLogout=account.logout(userName);
		return isLogout;
	}	

}
